import { POST as post, GET as get } from '../axios.config.js'

const base = config.ip
const projectName = '/rcdg-record'

// 获取待办列表
export const listNeedDeals = p => post(`${base}${projectName}/record-need-deal/listNeedDeals`, p)

// 获取已办类型列表
export const listNeedDealTypes = p => post(`${base}${projectName}/record-need-deal/listNeedDealTypes`, p)

// 获取已办信息列表
export const listNeedDealsByParam = p => post(`${base}${projectName}/record-need-deal/listNeedDealsByParam`, p)

// 更新待办为已读
export const updateNeedDealRead = p => post(`${base}${projectName}/record-need-deal/updateNeedDealRead`, p)

// 查询首页纪实回复列表
export const pageSelfRecordSuggest = p => get(`${base}${projectName}/record-suggest/pageSelfRecordSuggest`, p)

// 查询所属页面下的菜单树开始
export const listRecursiveMenuByBelong = p => get(`${base}/public-uias-api/uias-menu/listRecursiveMenuByBelong`, p)
